package stringexercise;
/** Length 的演示
 * 返回值类型是 int
 * int length()
 * 获取字符串的长度(字符个数)
 * */
public class LengthDemo {
    public static void main(String[] args) {
        String str = "thinking in java";
        int a = str.length();
        System.out.println(a);//16

    }
}
